package com.twu.shapes;


public class IsoscelesTriangle extends Shape {
    public IsoscelesTriangle(int size) {
        super(0);
        int spaceSize = size - 1;
        int length = 1;

        for(int i = 0; i < size; i++) {
            drawHorizontalLine(" ", spaceSize);
            spaceSize--;

            drawHorizontalLine("*", length);
            System.out.println();
            length += 2;
        }
    }
}
